<div class="user-center-head"><?php echo L('my_collect')?></div>  
<?php 
	if(isset($collectList) && $collectList){
		$price_tishi=0;
		foreach ($collectList as $collect){
			$info = ProductModel::product_price_changes($collect['product']['id']);
			if($collect['product']['attribute_type']==2){
				if($collect['product']['advanced_price'] != $info['advanced_price']  && $info['advanced_price'] >0){
					$price_tishi=1;
				}
			}else{
				if($collect['product']['custom_price'] != $info['custom_price'] && $info['custom_price'] >0){
					$price_tishi=1;
				}
			}
		}
	}
?>
<?php if($price_tishi):?>
<p class="carttitletips">TIPS:highlight said the price of the product price you have changes in price and you add to cart,please note;It is recommended that you pay in a timely manner.</p>
<?php endif;?>
<table class="table-list">
  <tbody>
   <tr>
     <td width="20%"><?php echo L('product_image');?></td>
     <td width="40%"><?php echo L('product_name');?></td>
     <td width="20%"><?php echo L('price');?></td>
     <td width="20%"><?php echo L('operate');?></td>
   </tr>
  	<?php
		if(isset($collectList) && $collectList):
			foreach ($collectList as $collect):
	?>
    <tr>
      <td><img src="<?php echo $collect['product']['small_img']?>" width="50" height="50" alt="<?php echo $collect['product']['name'];?>" /></td>
      <td><a href="<?php echo url('/product', array('id' => $collect['product']['id']));?>" target="_blank"><?php echo $collect['product']['name'];?></a></td>
	  <td>
		<?php 
		$info = ProductModel::product_price_changes($collect['product']['id']);
		if($collect['product']['attribute_type']==2){
			if($collect['product']['advanced_price'] != $info['advanced_price']  && $info['advanced_price'] >0){
		?>
		<div class="cartpro-oldprice"><?php echo currency($info['advanced_price']); ?></div>
		<div class="cartpro-newprice"><?php echo currency($collect['product']['advanced_price']); ?></div>
		<?php }else{?>
		<div class="cartpro-price"><?php echo currency($collect['product']['advanced_price']); ?></div>
		<?php }}else{?>
		<?php if($collect['product']['custom_price'] != $info['custom_price'] && $info['custom_price'] >0){?>
		<div class="cartpro-oldprice"><?php echo currency($info['custom_price']); ?></div>
		<div class="cartpro-newprice"><?php echo currency($collect['product']['custom_price']); ?></div>
		<?php }else{?>
		<div class="cartpro-price"><?php echo currency($collect['product']['custom_price']); ?></div>
		<?php }}?>
	  </td>
      <td>
	    <?php if($collect['product']['attribute_type']==2){?><a href=" <?php echo url('product/custom', array('id' => $collect['product']['id']));?>"><?php echo L('ADD_TO_CART')?></a><?php }else{?><a href="javascript:;" onclick="addProductToCart(<?php echo $collect['product']['id']?>)"><?php echo L('ADD_TO_CART')?></a><?php }?>/<!--<a href="javascript:;" onClick="confirm_url('<?php echo L('sure_cancel_collect');?>','<?php echo url('user/delete_collect', 'id='. $collect['id']);?>');"><?php echo L('cancel_collect');?></a>--><a href="javascript:;"><?php echo L('cancel_collect');?></a>
      </td>
    </tr>
	<?php endforeach;
			else:
	?>
	<tr>
	  <td colspan="4" class="no-record"><?php echo L('norecords')?></td>
	</tr>
	<?php endif;?>
  </tbody>
</table>
<div class="page"><?php echo $pageShow;?></div>